//
// Created by xili on 2024/7/30 20:16.
// Go big or go home.
//
#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    int vowelStrings(vector<string> &words, int left, int right) {
        int ans = 0;
        for (int i = left; i <= right; i++) {
            if (isYuan(words[i][0]) && isYuan(words[i][words[i].size() - 1])) {
                ans++;
            }
        }
        return ans;
    }

    bool isYuan(char c) {
        return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
    }
};